import { Scene } from '@/types/global'

export const stringToObject = (content: string) => {
  const obj: Scene = {}
  const pairs = content.split('&')
  pairs.forEach((pair) => {
    const [key, value] = pair.split('=')
    obj[key] = value
  })
  return obj
}
